package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum UserSex implements IEnum<Integer> {

    /**
     * 男
     */
    MALE(1,"男"),
    /**
     * 女
     */
    FEMALE(0,"女");


    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
